<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<jsp:include page="template-header.jsp" />
<h1>Locations</h1>

<c:forEach items="${locations}" var="location">
	<div class="content_item" onclick="location.href='location.html?id=${location.id}';">
		<img src="data:image/jpg;base64,${location.picture}" width="40" height="40" />
		<div class="title">${location.name}</div>
		<div>${location.strasse}, ${location.plz} ${location.ort}</div>
	</div>
</c:forEach>

<jsp:include page="template-footer.jsp" />
